import random

ran = random.randint(0, 10)

while True:
    n = eval(input('请输入你猜的数字：'))
    if n > ran:
        print('猜大了')
    elif n < ran:
        print('猜小了')
    else:
        print('猜对了')
        break
